package com.atguigu.day12.abstract02.a3;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/13 10:38
 * @注释
 */
public class Test {
    public static void main(String[] args) {
        Rectangle r = new Rectangle(3, 6);
        Triangle t = new Triangle(3, 4, 5);
        Circle c = new Circle(2);

        Graphic[] g = {r, t, c};

        for (Graphic graphic : g) {
            System.out.println(graphic);
        }
    }
}
